package com.project.service;

import com.project.bean.OrderBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "orderServer", path = "/order")
public interface IOrderService {
    @RequestMapping("addOrder")
    public String addOrder(@SpringQueryMap OrderBean orderBean);

    @RequestMapping("findByUser/{userName}")
    public List<OrderBean> findByUser(@PathVariable("userName") String userName);
}
